#include <iostream>
#include <windows.h>
#include"Widget.h"

int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
//int main()
{
    int screenWidth = GetSystemMetrics(SM_CXSCREEN);
    int screenHeight = GetSystemMetrics(SM_CYSCREEN);
    //使用屏幕分辨率初始化大窗口
    Widget widget(screenWidth / 2, screenHeight / 2);
    if (widget.init()) {
        widget.run();
        widget.close();
    }
    return 0;
}